import "./assets/css/main.css"

import "element-plus/theme-chalk/el-loading.css";
import "element-plus/theme-chalk/el-message.css";
import "element-plus/theme-chalk/el-notification.css";
import "element-plus/theme-chalk/el-message-box.css";

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'
import { download } from '@/utils/request'

import App from './App.vue'
import router from './router'

import "./permission"

const app = createApp(App)


const pinia = createPinia()
pinia.use(piniaPersist)

// 全局方法挂载
app.config.globalProperties.download = download

app.use(pinia)
app.use(router)

app.mount('#app')
